package com.zhijiang.hospital.controller;

import com.zhijiang.hospital.entrty.dto.MeetingDto;
import com.zhijiang.hospital.mapper.MeetingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project zhiJiangHealthBureau
 * @description
 * @date 2023-01-10 14:53:00
 */
@RestController
@RequestMapping("test")
public class TestController {


    @Autowired
    MeetingMapper meetingMapper;
    @PostMapping("meet")
    public String test01(@RequestBody MeetingDto meetingDto){
        return meetingDto.getMCode();
    }


    @GetMapping("mc")
    public List test02(String mCode){
        List<String> mCode1 = meetingMapper.findMCode(mCode);
        return  mCode1;
    }
}
